package se.webbzon.boltzmann.game.sequence.builder.assignment;

import se.webbzon.boltzmann.game.sequence.builder.AbstractSequenceRow;
import se.webbzon.boltzmann.game.sequence.builder.AbstractSequenceRowInflator;
import se.webbzon.boltzmann.game.sequence.builder.SequenceRowDeflation;
import se.webbzon.boltzmann.game.sequence.builder.SequenceRowInflatorBody;

public class AssignmentRowInflator extends AbstractSequenceRowInflator {

	/*============================================================
	Constructors
	============================================================*/
	
	public AssignmentRowInflator() {
		super(AssignmentRow.name);
	}
	
	/*============================================================
	Public Methods
	============================================================*/

	@Override public SequenceRowDeflation makeDeflation() {
		return new AssignmentRowDeflation();
	}

	@Override public AbstractSequenceRow makeNew(SequenceRowInflatorBody body) {
		return ((AssignmentRowDeflation) body.getDeflation()).makeRow(body.getSequenceBuilder());
	}

}
